package cn.zhentao.service.impl;

import cn.zhentao.dao.PersonDao;
import cn.zhentao.pojo.Person;
import cn.zhentao.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonDao dao;

    @Override
    public List<Person> findAll() {
        return dao.findAll();
    }
}
